package com.ha8.netease.views.utils
{
	import spark.collections.Sort;
	import spark.collections.SortField;
	
	/**
	 * 排序辅助类
	 * 
	 * @author rogo
	 */	
	public class SortUtil
	{
		
		public static function getMicroblogSort():Sort
		{
			var sort:Sort = new Sort();
			var sortField:SortField = new SortField('created_at', true);
			sort.fields = [sortField];
			return sort;
		}
		
		public static function getUserSort():Sort
		{
			var sort:Sort = new Sort();
			var sortField:SortField = new SortField('id');
			sort.fields = [sortField];
			return sort;
		}
		
	}
}